package com.zhao.system.service.impl;

import com.zhao.system.mapper.UserInfoMapper;
import com.zhao.system.poro.UserInfo;
import com.zhao.system.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    @Override
    public int add(UserInfo userInfo) {
        int i = userInfoMapper.add(userInfo);
        return i;
    }

    @Override
    public UserInfo find(int uid) {
        return userInfoMapper.find(uid);
    }

    @Override
    public int update(UserInfo userInfo) {
        int i = userInfoMapper.update(userInfo);
        return i;
    }
}
